package com.etc.service;

import com.etc.entity.Counthhf;
import com.etc.entity.User;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    //    增
    void saveUser(User user);
    //    查
    PageInfo<User> queryAllUser();
    //    删
    void deleteUser(int userid);
    //    改
    User updateUser(int userid);
    void updateUser2(User user);
    //计数
    Counthhf queryCount();
    //模糊查询
    Counthhf quserCountByNamePhone(@Param("username") String username, @Param("phone") String phone);
    List<User> queryByNamePhone(User user);

}
